package com.bee2c.osgi.invoke.service;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import com.alibaba.fastjson.JSONObject;import com.bee2c.osgi.invoke.BeeosgiUrlConfig;import com.bee2c.osgi.invoke.service.sub.BeeOsgiInterfaceInvoke;@Servicepublic class BeeClientInvokeHandler {	@Autowired	private BeeosgiUrlConfig sysConfig;	@Autowired	private BeeOsgiInterfaceInvoke invoke;	public Object distributeInvoke(String bcId, Integer groupId, JSONObject paraJson) {		if(groupId == null){			throw new RuntimeException("groupId不能为空");		}		if (groupId.equals(0)) {			return invoke.invokeBeeosgi(bcId, sysConfig.getBeenjhessionurl(), paraJson);		} else if (groupId.equals(1)) {			return invoke.invokeBeeosgi(bcId, sysConfig.getBeehzhessionurl(), paraJson);		}		throw new RuntimeException("未知的groupId");	}}